package com.wish.finance.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wish.finance.entity.TCwPayOrder;
import com.wish.finance.entity.TCwPayOrderVO;
import com.wish.finance.mapper.TCwPayOrderMapper;
import com.wish.finance.service.ITCwPayOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 支付订单表（支付流水信息） 服务实现类
 * </p>
 *
 * @author 
 * @since 2022-03-27
 */
@Service
public class TCwPayOrderServiceImpl extends ServiceImpl<TCwPayOrderMapper, TCwPayOrder> implements ITCwPayOrderService {

	@Override
	public IPage<TCwPayOrderVO> listAll(TCwPayOrderVO vo) {
		IPage<TCwPayOrderVO> page = new Page<>(vo.getPageNum(), vo.getPageSize());
		return 	getBaseMapper().listAll(page,vo);
	}

	@Override
	public List<TCwPayOrderVO> listExcel() {
		return getBaseMapper().listExcel();
	}
}
